package iotwisp.school.user.command.organization;

import com.alibaba.fastjson.JSON;
import iotwisp.base.cqrs.SPIBaseCommand;
import lombok.Data;
import lombok.EqualsAndHashCode;

@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
public class CreateOrganizationSCmd extends SPIBaseCommand {

    private String parentOrganizationId;

    private String defaultRoleId;

    private String name;

    private String type;

    private String address;

    private String phone;

    public static void main(String[] args) {
        CreateOrganizationSCmd cmd = new CreateOrganizationSCmd();
        cmd.setParentOrganizationId("system");
        cmd.setName("上海盼琦");
        cmd.setType("company");
        cmd.setAddress("上海");
        cmd.setPhone("12345678");
        System.out.println(JSON.toJSONString(cmd));
    }
}
